package net.ant.watercalc.web.controller;

import net.ant.watercalc.web.pojo.vo.RespVo;

public abstract class BaseController {

    public RespVo writeSuccessResp() {
        return writeSuccessResp(null);
    }

    public RespVo writeSuccessResp(Object data) {
        return new RespVo(200, "success", data);
    }

    public RespVo writeFailResp(int status, String msg) {
        return new RespVo(status, msg, null);
    }
}
